{if !isset($status)}
<h1>{t}Cache management{/t}</h1>

<div id="moduleTabs">
    <ul>
        <li><a href="javascript:void(0);" title="" ><span>{t}parameters{/t}</span></a></li>
    </ul>
</div>
{/if}

<div id="tabContent">
    <div id="formStatus">{if isset($status)}{$status}{/if}</div>

    <form method="post" action="?module=backoffice&action=block_SystemCache" name="form">
        
    <div class="submitButton"><button type="reset" class="greyButton" >{t}Cancel{/t}</button> <button type="submit" name="form[submit]" class="greenButton" >{t}Save{/t}</button></div>
    {assign var=parameters value=$config->getParameters('default')}
    <table class="listTable form">
        <tr>
            <th colspan="3">{t}Configuration{/t}</th>
        <tr>
        <tr>
            {t assignTo=help}Document Cache - Documents cache is used to improve performances when a document is loaded. Clean-up when there is a problem in documents relation{/t}
            <td style="width: 20px;">{icon name="help.png" class="toolTip" title=$help}</td>
            <td style="width:170px;">{t}Documents cache{/t} :</td>
            <td>
                <select name="form[cacheEnabled]">
                    <option value=0>{t}Disabled{/t}</option>
                    <option value=1 {if $parameters.cacheEnabled == true}selected="selected"{/if}>{t}Enabled{/t}</option>
                </select>
            </td>
        </tr>
        <tr>
            {t assignTo=help}HTML Cache - HTML cache is used when a page is displayed. Clean up when blocks are not correctly displayed.{/t}
            <td>{icon name="help.png" class="toolTip" title=$help}</td>
            <td>{t}HTML cache{/t} :</td>
            <td>
                <select name="form[smartyCache]">
                    <option value=0>{t}Disabled{/t}</option>
                    <option value=1 {if $parameters.smartyCache == true}selected="selected"{/if}>{t}Enabled{/t}</option>
                </select>
            </td>
        </tr>
        <tr>
            {t assignTo=help}Cache timeout - This the default timeout for all cache.{/t}
            <td>{icon name="help.png" class="toolTip" title=$help}</td>
            <td>{t}Default cache timeout{/t} :</td>
            <td>
                <input type="text" name="form[cacheTimeOut]" value="{$parameters.cacheTimeOut}" /> {t}seconds{/t}
            </td>
        </tr>
        <tr>
            <th colspan="3">Maintenance</th>
        </tr>
        <tr>
            {t assignTo=help}Clean up cache - This action will clean up cache files.{/t}
            <td>{icon name="help.png" class="toolTip" title=$help}</td>
            <td>{t}Cleaning{/t} :</td>
            <td><button class="greyButton" onclick="showModal('?module=backoffice&action=block_modal_ModalClearCache');return false">{t}Clean up cache files{/t}</button></td>
        </tr>
    </table>
</div>